<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<HTML><BODY BGCOLOR=cyan>
<h3>这是一个简单的JSP页面</h3>

<%
  int sum = 0;
  for(int i=1; i<=100; i++) {
    sum += i;
  }
%>

<h4>1到100的连续和是：<%= sum %></h4>
</BODY></HTML>